package all

// Igloo 冰屋：具体生成器
type Igloo struct {
	WindowType string
	FloorType  string
	DoorType   string
	FloorNum   int
}

func (i *Igloo) Window() {
	i.WindowType = "Igloo Window"
}

func (i *Igloo) Door() {
	i.DoorType = "Igloo Door"
}

func (i *Igloo) Floor() {
	i.FloorType = "Igloo Floor"
}

func (i *Igloo) Floors() {
	i.FloorNum = 5
}

func (i *Igloo) House() House {
	return House{
		WindowType: i.WindowType,
		FloorType:  i.FloorType,
		DoorType:   i.DoorType,
		FloorNum:   i.FloorNum,
	}
}
